home *** CD-ROM | disk | FTP | other *** search
/ MacPeople 2003 February 1 / MACPEOPLE-2003-02-01.ISO.7z / MACPEOPLE-2003-02-01.ISO / ぶらりオンラインウェアの旅 / おしゃべり漂流記 / xGates / xGates 1.2 Source Code.sit / xGates 1.2 Source Code / definitions.h < prev    next >
Text File  |  2002-12-08  |  5KB  |  237 lines

  1. /*
  2.     xGates -- Stunningly entertaining action game for MacOS Classic / MacOS X
  3.     Copyright (C) 2002 Sveinbjorn Thordarson <paladeen@soth.zoneit.com>
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  18.  
  19.     definitions.h
  20.  
  21. */
  22.  
  23.  
  24. #pragma once
  25.  
  26.  
  27.  
  28. #pragma mark - version
  29. //version
  30.     #define     kAppVersionMajor    1
  31.     #define     kAppVersionMinor    2
  32.  
  33.  
  34.  
  35. #pragma mark - OS
  36.  
  37.     #define        kMacOSClassic        0
  38.     #define        kMacOSX                1
  39.  
  40.  
  41.  
  42. #pragma mark - goodie
  43.  
  44.     //goodie
  45.     #define        kGoodieChance        1100
  46.  
  47.  
  48.  
  49. #pragma mark - bill
  50. //defs concerning bill
  51.  
  52.     //how long bill is drawn bloody on the screen before poofing away
  53.     #define kBillHitDuration    10
  54.  
  55.     //the starting speed for bill
  56.     #define kBillStartSpeed         3
  57.  
  58.     //how much bill is worth when he first appears
  59.     #define     kBillPoints     80
  60.  
  61.     //how much Bill's point value decreases per move
  62.     #define     kBillPointDecrease      1
  63.  
  64.     //minimum value from killing a bill
  65.     #define     kMinBillPointValue      20
  66.     
  67.     //max number of bills that can fit in structure/memory
  68.     #define     kMaxBills   10
  69.  
  70.     //max speed that bill can go to
  71.     #define     kMaxBillSpeed   11
  72.  
  73.  
  74.     //bill image
  75.     #define     kBillWidth      50
  76.     #define     kBillHeight     64
  77.  
  78. #pragma mark - steve
  79. //defs concerning steve
  80.  
  81.     #define kSteveSpeed         4//how fast he moves, all levels
  82.     #define kSteveKillPenalty   500 //that's how much you lose in points by killing the man
  83.  
  84. #pragma mark - mac points
  85.     //how much is earned/lost for each mac in level
  86.     #define    kMacPointsGain        100
  87.     #define    kMacPointsLose        100
  88.  
  89.  
  90.  
  91. //poofs
  92. #pragma mark - poofs
  93.     //poof messages to function
  94.     #define     kPoofAway   1
  95.     #define     kPoofAppear 0
  96.  
  97.     //maximum number of simultanaeous poofs
  98.     #define             kMaxPoofLimit       12
  99.  
  100.  
  101.  
  102. #pragma mark - locations
  103.  
  104.     //locations
  105.     #define kSplashScreen   0
  106.     #define kControls       1
  107.     #define kAbout          2
  108.     #define kMoreAbout        3
  109.     #define kCredits        4
  110.     #define kDisclaimer     5
  111.     #define kPlayingGame    6
  112.     #define kStartLevel     7
  113.     #define kEndLevel       8
  114.     #define kGameWon        9
  115.     #define kGamePaused     10
  116.     #define    kHighScore        11
  117.     #define kPerformance    12
  118.  
  119.  
  120.  
  121. #pragma mark - DoJ
  122.     //how long until DoJ can be used again
  123.     #define             kDoJCoolDown        68
  124.     //how long a DoJ bonus remains in level until it disappears
  125.     #define             kDojDuration        50
  126.     //dept. of justice effect duration
  127.     #define     kIndignantWait  40
  128.     #define     kBriefcaseWait  28
  129.  
  130.  
  131.  
  132.  
  133. #pragma mark - level stuff
  134. #define kLevelCompletedWaitPeriod   50
  135. #define kNumOfLevels 25
  136.  
  137.  
  138.  
  139.  
  140. #pragma mark - High score things
  141.  
  142. #define kNoHighScoreSet    -1
  143. #define kDefaultName    "¥pAnonymous"
  144.  
  145.  
  146.  
  147.  
  148.  
  149. #pragma mark - mac states
  150. //mac states
  151. #define     kMacOS          0
  152. #define     kWinXP          1
  153. #define     kWinCrash       2
  154. #define     kWinCrashErr    3      
  155.  
  156. #define     kWinXPStateDuration  40
  157. #define     kErrorFlashPause     10
  158. #define     kChanceOfReboot      10
  159.  
  160.  
  161. #pragma mark - mac types
  162. //mac types
  163. #define     kiMac           0
  164. #define     kYosemite       1
  165. #define     kSawtooth          2
  166. #define     kCube           3
  167. #define        kNewiMac        4
  168. #define        kQuicksilver    5
  169. #define        kiBook            6
  170.  
  171.  
  172.  
  173. #define        kPismo            7
  174. #define        kNewiBook        8
  175. #define        kTiBook            9
  176.  
  177.  
  178. #pragma mark - bill states
  179. //bill states
  180. #define     kBillWalkOne    0
  181. #define     kBillWalkTwo    1
  182. #define     kBillHit        2
  183. #define     kBillWinXP      3
  184. #define     kBillIndignant  4
  185. #define     kBillBriefcase  5
  186.  
  187.  
  188. #pragma mark - chainsaw
  189. //chainsaw jamming
  190. #define            kChainsawJammedWait        50//how long it remains jammed
  191. #define            kChainsawJamTime        100//time until it jams
  192.  
  193. #pragma mark - pause
  194.  
  195. #define         kPauseCooldown          60  //how long must pass before you can pause again
  196. #define         kMinPausePeriod         100 //minimum time one must pause
  197.  
  198.  
  199.  
  200. #pragma mark - zooming
  201. //zoom prefs
  202. #define kZoomSpeed      30 //number of steps to use in zooming
  203. #define kZoomPause      1  //how long to sleep in each step
  204.  
  205.  
  206.  
  207.  
  208.  
  209.  
  210. #pragma mark - prefs
  211.  
  212. #define kPreferencesFileName    "¥pxGates Preferences"
  213.  
  214.  
  215.  
  216.  
  217. #pragma mark - blitting
  218.  
  219. #define kMaxUpdateRects     30//high number just to be sure
  220.  
  221.  
  222.  
  223. #define kFrameRate15fps     3
  224. #define kFrameRate30fps     1
  225. #define kFrameRate60fps     0
  226.  
  227. #define kDefaultFrameRate       kFrameRate30fps
  228.  
  229.  
  230.  
  231. #pragma mark - time demo
  232.  
  233. #define kNumFramesToTime    1000
  234. #define kNumBillsToTime     10
  235.  
  236.  
  237.